package www.com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import www.com.entity.User;
import www.com.service.LoginService;

import java.util.Map;

@RestController
@RequestMapping("/login")
public class LoginController {
   @Autowired
   private LoginService loginService;
    @PostMapping("")
    public Object pwdLogin(@RequestBody User info){
        return loginService.pwdLogin(info);
    }
}
